package org.itboys.product.search;

/**
 * 商品搜索参数
 */
public class ProductSearchParam {

    private static final int DEFAULT_SIZE = 20;

    /**
     * 商品名称关键字
     */
    private String keyword;

    private String brandId;

    private int status;

    private int pageSize = DEFAULT_SIZE; //分页条数

    /**
     * 从第一页开始
     */
    private int pageNo = 1;//分页大小

    //TODO 其他的搜索排序条件等产品文档出来再搞

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
